package com.zto.service.impl;

import com.zto.mapper.UserMapper;
import com.zto.mapper.UserMapper1;
import com.zto.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-11-29 22:33
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Autowired
    UserMapper1 userMapper1;

    @Override
    public List<Map<String, Object>> listAllUser() {
        List<Map<String, Object>> maps = userMapper.listAllUser();

        userMapper.listAllUser();
        return maps;
    }

    @Override
    public int updateUserByParam() {
        return userMapper1.updateByParam();
    }

}
